| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | /** |
||
| 37 | webpackServer.listen(config.build.webpackServerPort, (err) => { |
||
| 38 | if (err) { |
||
| 39 | console.error(err); |
||
| 40 | return; |
||
| 41 | } |
||
| 42 | console.log(`Webpack dev server listening at ${config.defaults.host}:${config.build.webpackServerPort}`); |
||
|
|
|||
| 43 | |||
| 44 | appServer.addPlugin({ register: H2O2 }); |
||
| 45 | |||
| 46 | appServer.start([ |
||
| 47 | { |
||
| 48 | method: 'GET', |
||
| 49 | path: `${config.build.publicUrlPrefix}/{path*}`, |
||
| 50 | handler: { |
||
| 51 | proxy: { |
||
| 52 | host: config.defaults.host, |
||
| 53 | port: config.build.webpackServerPort, |
||
| 54 | passThrough: true, |
||
| 55 | }, |
||
| 56 | }, |
||
| 57 | config: { |
||
| 58 | auth: false, |
||
| 59 | }, |
||
| 60 | }, |
||
| 61 | ]); |
||
| 62 | }); |
||
| 63 |